var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res) {
    if(req.session.user){
        res.render('main');
    }else{
        //重新登录
        res.redirect('/');
    }
});

module.exports = router;


